/**
 * @功能 会员资料表
 */

package bhbt.model;


import java.util.Date;

import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import bhbt.model.core.BaseModel;





@Alias("Member")
public class Member extends BaseModel  {
  
	
	private String stateRiFeng="F";				//见点日封顶
	
	private String accountUse="T";				//帐号状态
	private String accountFen="T";				//日分红状态
	private String accountActive="F";			//激活状态
	
	private String accountCenter="F";			//是否管理中心
	
	private String accountZhuan="T";			//是否转币
	
	private String stateZiliao="F";				//银行资料状态
	private String stateWage="T";				//工资状态
	
	private String stateQian="F";				//签到状态

	private Date lastTime;						//上次登录时间
	private Integer loginNum=0;					//登录次数
	private Date loginTime;						//登录时间

	private Integer errorNum = 0;					//密码错误次数
	private Date errorDate;							//密码错误时间
	
	private Integer level=0;						//帐号类型(级别)  0：普通会员   1：一级代理商   2：二级代理商   3：三级代理商
	
	private Integer dailiId;						//会员级别
	
	private Double payNum;							//投资额
	
	private Integer wageCurrentId;					//当前工资

	private String loginName;					//登录名
	 
	private String onePassword;					//查询密码
	private String twoPassword;					//支付密码
	private String threePassword;				//支付密码
	
	
	private String pwdQuestion;					//密码保护问题
	private String pwdAnswer;					//密码保护答案

	private Double money = 0d;					//现金币
	
	private Double ele = 0d;					//原石账户 
	private Double shui = 0d;					//动物基金
	private Double store = 1d;					// 
	private Double chuangye = 0d;				//复投币
	
	private Double stock = 0d;					// 原始股
	
	private Integer kuang = 1;					//我的矿点   		购买的+转让的+复投的
	private Integer activeKuang = 1;			//运行的矿点			
	private Integer totalActiveKuang = 1;		//累计激活矿点
	private Integer buyKuang = 1;				//累计购买矿点
	
	private Double wage1 = 0d;					//累计奖金1	招商佣金
	private Double weiWage1 = 0d;				//累计奖金1	
	private Double wage2 = 0d;					//累计奖金2	今日产石量
	
	private Double wage3 = 0d;					//累计奖金3  	 共享产值 
	private Double wage4 = 0d;					//累计奖金4    BHP股市分红
	
	private Double wage5 = 0d;					//累计奖金5 
	private Double wage6 = 0d;					//累计奖金6        
	private Double wage7 = 0d;					//累计奖金7   
	private Double wage8 = 0d;					//累计奖金8  
	
	private Double historyWage = 0d;			//累计奖金
	
	private Integer registerId;					//注册人
	private Date registerDate=  new Date();		//注册日期
	
	private Date noActiveDate;					//未激活删除时间
	
	private Integer activeId;					//激活人
	private Date activeDate ;					//激活日期
	
    private Integer recommendId;				//推荐人
    private Integer recommendNum=0;				//直推人数
    private Integer recommendNum10=0;				//
    private Integer recommendNum20=0;				//
    private Integer recommendNum30=0;				//
    private Integer recommendTotalNum=0;		//团队人数
    
    
    private Integer recommendSucceedNum=0;			//有效直推人数
    private Integer recommendSucceedTotalNum=0;		//有效团队人数
    
    private Double recommendYe = 0d;				//直推业绩
    private Double recommendTotalYe = 0d;			//团队业绩
    
	
	private String bankName;			//开户行名称
	private String bankAddress;			//开户行地址
	private String bankSheng;			//开户行省份
	private String bankShi;				//开户行地市
	private String bankCardNo;			//银行卡号
	private String bankPersonName;		//开户名
	
	private String zhifuName;			//支付宝名称
	private String zhifuCardNo;			//支付宝账户
	
	
	
	private String personName;			//真实姓名
	private String cardNo;				//身份证号
	private String sex;					//性别
	private String wei;					//微信号
	private String title="";			//网名
	private String tel;					//联系电話
	private String qq;					//QQ号码
	private String email;				//安全邮箱
 
	private String remark;				//备注	

 
	private String sessionId="";	
	
	private Integer centerId;						//服务中心
	
	private Integer fatherId;						//接点人
    private Integer qu;								//所属区域
    private Integer zuoId;							//左区会员
    private Integer youId;							//右区会员
    
    private Integer zuoRen=0;							 
    private Integer youRen=0;	
   
    private Double zuoYe=0d;							 
    private Double youYe=0d;	
   
    private Double zuoYuYe=0d;							 
    private Double youYuYe=0d;	
   
    
	public Date getLastTime() {
		return lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	public Integer getLoginNum() {
		return loginNum;
	}

	public void setLoginNum(Integer loginNum) {
		this.loginNum = loginNum;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Integer getErrorNum() {
		return errorNum;
	}

	public void setErrorNum(Integer errorNum) {
		this.errorNum = errorNum;
	}

	public Date getErrorDate() {
		return errorDate;
	}

	public void setErrorDate(Date errorDate) {
		this.errorDate = errorDate;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getDailiId() {
		return dailiId;
	}

	public void setDailiId(Integer dailiId) {
		this.dailiId = dailiId;
	}
 

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getOnePassword() {
		return onePassword;
	}

	public void setOnePassword(String onePassword) {
		this.onePassword = onePassword;
	}

	public String getTwoPassword() {
		return twoPassword;
	}

	public void setTwoPassword(String twoPassword) {
		this.twoPassword = twoPassword;
	}

	public String getThreePassword() {
		return threePassword;
	}

	public void setThreePassword(String threePassword) {
		this.threePassword = threePassword;
	}

	public String getPwdQuestion() {
		return pwdQuestion;
	}

	public void setPwdQuestion(String pwdQuestion) {
		this.pwdQuestion = pwdQuestion;
	}

	public String getPwdAnswer() {
		return pwdAnswer;
	}

	public void setPwdAnswer(String pwdAnswer) {
		this.pwdAnswer = pwdAnswer;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Double getEle() {
		return ele;
	}

	public void setEle(Double ele) {
		this.ele = ele;
	}

	public Double getShui() {
		return shui;
	}

	public void setShui(Double shui) {
		this.shui = shui;
	}

	public Double getStore() {
		return store;
	}

	public void setStore(Double store) {
		this.store = store;
	}

	public Double getChuangye() {
		return chuangye;
	}

	public void setChuangye(Double chuangye) {
		this.chuangye = chuangye;
	}

	public Double getWage1() {
		return wage1;
	}

	public void setWage1(Double wage1) {
		this.wage1 = wage1;
	}

	public Double getWage2() {
		return wage2;
	}

	public void setWage2(Double wage2) {
		this.wage2 = wage2;
	}

	public Double getWage3() {
		return wage3;
	}

	public void setWage3(Double wage3) {
		this.wage3 = wage3;
	}

	public Double getWage4() {
		return wage4;
	}

	public void setWage4(Double wage4) {
		this.wage4 = wage4;
	}

	public Double getWage5() {
		return wage5;
	}

	public void setWage5(Double wage5) {
		this.wage5 = wage5;
	}

	public Double getWage6() {
		return wage6;
	}

	public void setWage6(Double wage6) {
		this.wage6 = wage6;
	}

	public Double getWage7() {
		return wage7;
	}

	public void setWage7(Double wage7) {
		this.wage7 = wage7;
	}

	public Double getWage8() {
		return wage8;
	}

	public void setWage8(Double wage8) {
		this.wage8 = wage8;
	}

	public Double getHistoryWage() {
		return historyWage;
	}

	public void setHistoryWage(Double historyWage) {
		this.historyWage = historyWage;
	}

	public Integer getRegisterId() {
		return registerId;
	}

	public void setRegisterId(Integer registerId) {
		this.registerId = registerId;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public Integer getActiveId() {
		return activeId;
	}

	public void setActiveId(Integer activeId) {
		this.activeId = activeId;
	}

	public Date getActiveDate() {
		return activeDate;
	}

	public void setActiveDate(Date activeDate) {
		this.activeDate = activeDate;
	}

	public Integer getRecommendId() {
		return recommendId;
	}

	public void setRecommendId(Integer recommendId) {
		this.recommendId = recommendId;
	}

	public Integer getRecommendNum() {
		return recommendNum;
	}

	public void setRecommendNum(Integer recommendNum) {
		this.recommendNum = recommendNum;
	}

	public Integer getRecommendTotalNum() {
		return recommendTotalNum;
	}

	public void setRecommendTotalNum(Integer recommendTotalNum) {
		this.recommendTotalNum = recommendTotalNum;
	}

	public Integer getRecommendSucceedNum() {
		return recommendSucceedNum;
	}

	public void setRecommendSucceedNum(Integer recommendSucceedNum) {
		this.recommendSucceedNum = recommendSucceedNum;
	}

	public Integer getRecommendSucceedTotalNum() {
		return recommendSucceedTotalNum;
	}

	public void setRecommendSucceedTotalNum(Integer recommendSucceedTotalNum) {
		this.recommendSucceedTotalNum = recommendSucceedTotalNum;
	}

	


	 
	 
	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getWei() {
		return wei;
	}

	public void setWei(String wei) {
		this.wei = wei;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStateRiFeng() {
		return stateRiFeng;
	}

	public void setStateRiFeng(String stateRiFeng) {
		this.stateRiFeng = stateRiFeng;
	}

	public String getAccountUse() {
		return accountUse;
	}

	public void setAccountUse(String accountUse) {
		this.accountUse = accountUse;
	}

	public String getAccountFen() {
		return accountFen;
	}

	public void setAccountFen(String accountFen) {
		this.accountFen = accountFen;
	}

	public String getAccountActive() {
		return accountActive;
	}

	public void setAccountActive(String accountActive) {
		this.accountActive = accountActive;
	}

	public String getAccountCenter() {
		return accountCenter;
	}

	public void setAccountCenter(String accountCenter) {
		this.accountCenter = accountCenter;
	}

	public String getAccountZhuan() {
		return accountZhuan;
	}

	public void setAccountZhuan(String accountZhuan) {
		this.accountZhuan = accountZhuan;
	}
 
	public String getStateZiliao() {
		return stateZiliao;
	}

	public void setStateZiliao(String stateZiliao) {
		this.stateZiliao = stateZiliao;
	}

	public String getStateWage() {
		return stateWage;
	}

	public void setStateWage(String stateWage) {
		this.stateWage = stateWage;
	}

  
	
	 
	@Transient
	public String getIco(){ 		
		
		String ico="";
		
		if(this.accountActive.equals("T")){
			
			if(this.dailiId.equals(10)){
				ico="person10.jpg";
				
			}else if(this.dailiId.equals(20)){
				ico="person20.jpg";
				
			}else if(this.dailiId.equals(30)){
				ico="person30.jpg";
				
			} 
			
		}else{
			ico="person.jpg";
		}
		
		return ico;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankAddress() {
		return bankAddress;
	}

	public void setBankAddress(String bankAddress) {
		this.bankAddress = bankAddress;
	}

	public String getBankSheng() {
		return bankSheng;
	}

	public void setBankSheng(String bankSheng) {
		this.bankSheng = bankSheng;
	}

	public String getBankShi() {
		return bankShi;
	}

	public void setBankShi(String bankShi) {
		this.bankShi = bankShi;
	}

	public String getBankCardNo() {
		return bankCardNo;
	}

	public void setBankCardNo(String bankCardNo) {
		this.bankCardNo = bankCardNo;
	}

	public String getBankPersonName() {
		return bankPersonName;
	}

	public void setBankPersonName(String bankPersonName) {
		this.bankPersonName = bankPersonName;
	}

	public String getZhifuName() {
		return zhifuName;
	}

	public void setZhifuName(String zhifuName) {
		this.zhifuName = zhifuName;
	}

	public String getZhifuCardNo() {
		return zhifuCardNo;
	}

	public void setZhifuCardNo(String zhifuCardNo) {
		this.zhifuCardNo = zhifuCardNo;
	}

	public Double getPayNum() {
		return payNum;
	}

	public void setPayNum(Double payNum) {
		this.payNum = payNum;
	}

	public Double getRecommendYe() {
		return recommendYe;
	}

	public void setRecommendYe(Double recommendYe) {
		this.recommendYe = recommendYe;
	}

	public Double getRecommendTotalYe() {
		return recommendTotalYe;
	}

	public void setRecommendTotalYe(Double recommendTotalYe) {
		this.recommendTotalYe = recommendTotalYe;
	}

	 

	public Integer getWageCurrentId() {
		return wageCurrentId;
	}

	public void setWageCurrentId(Integer wageCurrentId) {
		this.wageCurrentId = wageCurrentId;
	}

 
	public Date getNoActiveDate() {
		return noActiveDate;
	}

	public void setNoActiveDate(Date noActiveDate) {
		this.noActiveDate = noActiveDate;
	}
 

	public Double getStock() {
		return stock;
	}

	public void setStock(Double stock) {
		this.stock = stock;
	}

	 
	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public Integer getFatherId() {
		return fatherId;
	}

	public void setFatherId(Integer fatherId) {
		this.fatherId = fatherId;
	}

	public Integer getQu() {
		return qu;
	}

	public void setQu(Integer qu) {
		this.qu = qu;
	}

	public Integer getZuoId() {
		return zuoId;
	}

	public void setZuoId(Integer zuoId) {
		this.zuoId = zuoId;
	}

	public Integer getYouId() {
		return youId;
	}

	public void setYouId(Integer youId) {
		this.youId = youId;
	}

	 

	public Double getWeiWage1() {
		return weiWage1;
	}

	public void setWeiWage1(Double weiWage1) {
		this.weiWage1 = weiWage1;
	}

	 

	public String getStateQian() {
		return stateQian;
	}

	public void setStateQian(String stateQian) {
		this.stateQian = stateQian;
	}

	public Integer getRecommendNum10() {
		return recommendNum10;
	}

	public void setRecommendNum10(Integer recommendNum10) {
		this.recommendNum10 = recommendNum10;
	}

	public Integer getRecommendNum20() {
		return recommendNum20;
	}

	public void setRecommendNum20(Integer recommendNum20) {
		this.recommendNum20 = recommendNum20;
	}

	public Integer getRecommendNum30() {
		return recommendNum30;
	}

	public void setRecommendNum30(Integer recommendNum30) {
		this.recommendNum30 = recommendNum30;
	}

	public Integer getZuoRen() {
		return zuoRen;
	}

	public void setZuoRen(Integer zuoRen) {
		this.zuoRen = zuoRen;
	}

	public Integer getYouRen() {
		return youRen;
	}

	public void setYouRen(Integer youRen) {
		this.youRen = youRen;
	}

	public Double getZuoYe() {
		return zuoYe;
	}

	public void setZuoYe(Double zuoYe) {
		this.zuoYe = zuoYe;
	}

	public Double getYouYe() {
		return youYe;
	}

	public void setYouYe(Double youYe) {
		this.youYe = youYe;
	}

	public Double getZuoYuYe() {
		return zuoYuYe;
	}

	public void setZuoYuYe(Double zuoYuYe) {
		this.zuoYuYe = zuoYuYe;
	}

	public Double getYouYuYe() {
		return youYuYe;
	}

	public void setYouYuYe(Double youYuYe) {
		this.youYuYe = youYuYe;
	}

	public Integer getCenterId() {
		return centerId;
	}

	public void setCenterId(Integer centerId) {
		this.centerId = centerId;
	}

 
 
	@Transient
	public Double getXiaoNum(){ 		
		if(this.zuoYe>this.youYe){
			return this.youYe;
		}else{
			return this.zuoYe;
		}
	}

	public Integer getKuang() {
		return kuang;
	}

	public void setKuang(Integer kuang) {
		this.kuang = kuang;
	}

	public Integer getBuyKuang() {
		return buyKuang;
	}

	public void setBuyKuang(Integer buyKuang) {
		this.buyKuang = buyKuang;
	}

	public Integer getActiveKuang() {
		return activeKuang;
	}

	public void setActiveKuang(Integer activeKuang) {
		this.activeKuang = activeKuang;
	}

	public Integer getTotalActiveKuang() {
		return totalActiveKuang;
	}

	public void setTotalActiveKuang(Integer totalActiveKuang) {
		this.totalActiveKuang = totalActiveKuang;
	}
	 
	

}